﻿GroupListModel = AjaxModel.extend
({
    service: "Loader.asmx",
    defaults:
        {
            startIndex: 0,
            pageSize: 100,
            searchText: null
        },
    ListProjects: function (callback, ref)
    {
        this.method = "ListProjects";

        util.ajaxSetup(this, callback, this.OnError, ref);

        //var parameters = { data: "{startIndex:" + this.attributes.startIndex + ",pageSize:" + this.attributes.pageSize + ",searchtags:'" + this.attributes.searchText + "'}" };

        $.ajax({});
    },
    OnError: function (evt)
    {
        console.log(evt);
    }
})